package tester;

/**
 * Created by IntelliJ IDEA.
 * User: aleck
 * Date: 2007-10-23
 * Time: 9:45:08
 * To change this template use File | Settings | File Templates.
 */
public class AllUntestedTesterThread extends BaseTesterThread {
  private final PersonManager persons;
  private final ProblemManager problems;

  public AllUntestedTesterThread(PersonManager persons, ProblemManager problems) {
    this.persons = persons;
    this.problems = problems;
  }

  public void run() {
    for (Person person : persons.personList) {
      for (Problem problem : problems.problemList) {
        if (!person.stat.get(problem.name).isTested()) {
          PersonProblemTester spt =
              new PersonProblemTester(person, problem, Config.getWorkDir());
          spt.runTest();
        }
      }
    }
    MessageOutput.println(finishedMessage);
  }
}
